<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2021/3/23
  Time: 15:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <form action="/book" method="post">
        <input type="text" name="name" placeholder="书名"><br>
        <input type="text" name="author" placeholder="作者"><br>
        <input type="text" name="price" placeholder="价格"><br>
        <input type="submit" value="添加">
    </form>
    <hr>
    <form action="/book" method="post">
        <%--隐藏域配置put方法--%>
        <input name="_method" type="hidden" value="put">
            <input type="text" name="id" placeholder="ID"><br>
        <input type="text" name="name" placeholder="书名"><br>
        <input type="text" name="author" placeholder="作者"><br>
        <input type="text" name="price" placeholder="价格"><br>
        <input type="submit" value="更新">
    </form>
</body>
</html>
